package cn.itcast.dao;

import cn.itcast.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderSettingsDao {
    /**根据日期获取数据*/
    List<OrderSetting> getOrderSettingsByMonth(@Param("minDate") String minDate, @Param("maxDate") String maxDate);

    /**修改可预人数*/
    Boolean updateOrderSettingNumber(@Param("orderDate") String orderDate,@Param("number") Integer number);

    /**设置(新建)可预预约人数*/
    Boolean saveOrderSettingNumber(OrderSetting orderSetting);

    /**查询可预约人数*/
    Integer queryReservationsByOrderDate(String orderDate);

    /**查询单日预约情况*/
    OrderSetting queryOrderSettingByOrderDate(String orderDate);

    /**更新已预约人数*/
    Boolean updateOrderSettingReservations(@Param("orderDate")String orderDate,@Param("reservations") Integer reservations);

}
